/////////////////////////////////////////////////////////////////////////
//
// Amuse Engine - graphics/scene/collection
// Copyright (c) 2015.  All Rights Reserved
//
// File:		AEStaticGeometryInstanceCollection.h
// Author:		Gianluca Belardelli
// Date:		23/06/2015
//
/////////////////////////////////////////////////////////////////////////
#ifndef _AESTATICGEOMETRYINSTANCECOLLECTION_INL_
#define _AESTATICGEOMETRYINSTANCECOLLECTION_INL_

AE_FORCEINLINE AEBOOL32 AEStaticGeometryInstanceCollection::Contains( AEStaticGeometryInstance *lpMeshInstance ) const
{
	return GetIndexOf( (const void *)lpMeshInstance ) >= 0;
}

AE_FORCEINLINE AEStaticGeometryInstance *AEStaticGeometryInstanceCollection::GetEntry( AEUINT32 uiIndex ) const
{
	return (AEStaticGeometryInstance *)AERenderCollection::GetEntry( uiIndex );
}

AE_FORCEINLINE void AEStaticGeometryInstanceCollection::AppendEntry( AEStaticGeometryInstance *lpMeshInstance )
{
	AERenderCollection::AppendEntry( (AEStaticGeometryInstance *)lpMeshInstance );
}

AE_FORCEINLINE void AEStaticGeometryInstanceCollection::AppendEntryFast( AEStaticGeometryInstance *lpMeshInstance )
{
	AERenderCollection::AppendEntryFast( (AEStaticGeometryInstance *)lpMeshInstance );
}

AE_FORCEINLINE AEStaticGeometryInstance **AEStaticGeometryInstanceCollection::GetDataPtr( void ) const
{
	return (AEStaticGeometryInstance **)&m_arrEntries;
}

#endif // _AESTATICGEOMETRYINSTANCECOLLECTION_INL_
